package mdv.exp.items.list;

import android.database.Cursor;

public class ItemsListRowData {
	
	private Cursor cursor;
	String[] columns = {
			"_id",
			"date",
			"suplier_name",
			"kind",
			"sub_kind",
			"name",
			"price",
			"comments",
	};

	public ItemsListRowData(Cursor cursor){
		this.cursor = cursor;
	}

	public String getRow1Val() {
		return cursor.getString(cursor.getColumnIndex(columns[0]));
	}
	
	public String getRow2Val() {
		return cursor.getString(cursor.getColumnIndex(columns[1]));
	}
	
	public String getRow3Val() {
		return cursor.getString(cursor.getColumnIndex(columns[2]));
	}
	
	public String getRow4Val() {
		return cursor.getString(cursor.getColumnIndex(columns[3]));
	}
	
	public String getRow5Val() {
		return cursor.getString(cursor.getColumnIndex(columns[4]));
	}
	
	public String getRow6Val() {
		return cursor.getString(cursor.getColumnIndex(columns[5]));
	}
	
	public String getRow7Val() {
		return cursor.getString(cursor.getColumnIndex(columns[6]));
	}
	
	public String getRow8Val() {
		return "";
	}
	
	public String getRow9Val() {
		return "";
	}
	
	public String getRow10Val() {
		return "";
	}

}
